package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout.LayoutParams;
import com.huawei.appgallery.foundation.card.base.bean.BaseDistCardBean;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.service.store.awk.bean.HorizontalBigImgCustomedItemBean;
import o.cgz;
import o.chc;
import o.chy;
import o.epv;
import o.evx;
import o.ewm.h;

public class HorizontalBigImgCustomedItemCard extends HorizontalBigImgItemCard {
    private HorizontalBigImgCustomedItemBean ˋॱ;

    public HorizontalBigImgCustomedItemCard(Context context) {
        super(context);
    }

    public static int ʼ() {
        return chc.ˉ();
    }

    public cgz ˏ(View view) {
        super.ˏ(view);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
    }

    protected int ao_() {
        return h.ॱꜞ;
    }

    public int ˊ() {
        return h.ʻˊ;
    }

    public int ˎ() {
        return h.ʻˊ;
    }

    protected evx ˏ(final chy o_chy) {
        return new evx(this) {
            final /* synthetic */ HorizontalBigImgCustomedItemCard ˏ;

            public void ˋ(View view) {
                o_chy.ˏ(0, this.ˏ);
            }
        };
    }

    public void x_() {
        if ((this.ˊᐝ instanceof HorizontalBigImgCustomedItemBean) && this.ˉ != null) {
            this.ˋॱ = (HorizontalBigImgCustomedItemBean) this.ˊᐝ;
            if (this.ˋॱ.ꞌ() == 0) {
                this.ˉ.setText(((HorizontalBigImgCustomedItemBean) this.ˊᐝ).ˏˏ());
            } else if (this.ˋॱ.ꞌ() == 1) {
                this.ˉ.setText(((HorizontalBigImgCustomedItemBean) this.ˊᐝ).ˎͺ());
            } else if (this.ˋॱ.ꞌ() == 6) {
                this.ˉ.setText(((HorizontalBigImgCustomedItemBean) this.ˊᐝ).ˊʻ());
            }
        }
    }

    protected void ॱॱ() {
        int ˎ = epv.ˎ(this.ʼॱ, ʼ(), chc.ˋ());
        this.ˏॱ.setLayoutParams(new LayoutParams(ˎ, (int) (((float) ˎ) * epv.ʼ())));
    }

    public ViewGroup ˏॱ() {
        return this.ˏॱ;
    }

    public void w_() {
        super.w_();
    }

    public void ॱ(BaseDistCardBean baseDistCardBean) {
        super.ॱ(baseDistCardBean);
    }
}
